﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CarShop.Domain.Entities;

namespace CarShop.Security.Contracts
{
    public interface IMembershipProvider
    {
        User CreateUser(string login, string email, string password);

        User FindUserById(int userId);

        User FindUserByLoginOrEmail(string loginOrEmail);

        string ResetPassword(string loginOrEmail);

        void ChangePassword(string newPassword, int userId);

        void ValidateUser(string loginOrEmail, string password);

        void AddUserToRole(int userId, string role);

    }
}
